import Vue from "vue";
import Element from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "element-ui/lib/theme-chalk/base.css";
// collapse 展开折叠
import CollapseTransition from "element-ui/lib/transitions/collapse-transition";

//自定义
import { selectTree, window, pagination } from "../components/element/index";

Vue.use(Element);
Vue.use(selectTree);
Vue.use(pagination);

/**
 * @description 打开一个window
 * @param {Object} com 组件
 * @param {String} title 标题
 * @param {Object} data 参数
 */
Vue.prototype.$window = window;
Vue.component(CollapseTransition.name, CollapseTransition);
